<?php
namespace Satan\Think\Addons;

use think\facade\Lang;

class AddonsService extends \think\Service
{
    public function boot()
    {
        //加载路由
        $this->loadRoutesFrom(__DIR__.DIRECTORY_SEPARATOR.'route'.DIRECTORY_SEPARATOR.'addons.php');

    }
    public function register(): void
    {
        //加载语言文件
        Lang::load(__DIR__.DIRECTORY_SEPARATOR.'lang'.DIRECTORY_SEPARATOR.'addon.php','addon');
    }

}